import request from '@/utils/request'

/**
 * 获取下单信息
 */
export const createOrder = () => {
  return request('/member/order/pre', 'get')
}

/**
 * 提交订单
 */
export const postOrder = (data) => {
  return request('/member/order', 'post', data)
}

/**
 * 获取订单详情
 * @param {String} id - 订单ID
 */
export const orderDetail = (id) => {
  return request('/member/order/' + id, 'get')
}
